package com.sirc.zp.domain;

/**
 * 家谱表，对应数据库中的家谱记录
 */
public class ZP {
    private Integer id; // 主键id
    private String name; // 姓名
    private String idname; // 身份证名称
    private String rname; // 乳名
    private Integer pid; // 父节点id
    private Integer rank;  // 每一个家庭的第几个孩子，第一个孩子是1，第二个孩子是2
    private Integer gene; // 家族的第几代
    private String csrq; // 出生日期
    private String swrq; //死亡日期
    private String wife;//妻子
    private String wcsrq; //妻子出生日期
    private String wswrq; //妻子死亡日期
    private String wintr; //妻子介绍
    private String addr; //家庭地址
    private String lxfs;
    private String intr; //个人简介（族谱介绍）
    private String zi;  // 字
    private String dadd;
    private String gi; //是否过继
    private String dwife; //是否多妻
    private String edu; //教育介绍
    private String title;
    private String school; //学校
    private String hao; // 号
    private String tname;
    private String haschild;//是否有孩子
    private String isdelete;//是否删除

    public ZP() {
    }

    public ZP(Integer id, String name, String idname, String rname, Integer pid, Integer rank, Integer gene, String csrq, String swrq, String wife, String wcsrq, String wswrq, String wintr, String addr, String lxfs, String intr, String zi, String dadd, String gi, String dwife, String edu, String title, String school, String hao, String tname, String haschild, String isdelete) {
        this.id = id;
        this.name = name;
        this.idname = idname;
        this.rname = rname;
        this.pid = pid;
        this.rank = rank;
        this.gene = gene;
        this.csrq = csrq;
        this.swrq = swrq;
        this.wife = wife;
        this.wcsrq = wcsrq;
        this.wswrq = wswrq;
        this.wintr = wintr;
        this.addr = addr;
        this.lxfs = lxfs;
        this.intr = intr;
        this.zi = zi;
        this.dadd = dadd;
        this.gi = gi;
        this.dwife = dwife;
        this.edu = edu;
        this.title = title;
        this.school = school;
        this.hao = hao;
        this.tname = tname;
        this.haschild = haschild;
        this.isdelete = isdelete;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdname() {
        return idname;
    }

    public void setIdname(String idname) {
        this.idname = idname;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Integer getGene() {
        return gene;
    }

    public void setGene(Integer gene) {
        this.gene = gene;
    }

    public String getCsrq() {
        return csrq;
    }

    public void setCsrq(String csrq) {
        this.csrq = csrq;
    }

    public String getSwrq() {
        return swrq;
    }

    public void setSwrq(String swrq) {
        this.swrq = swrq;
    }

    public String getWife() {
        return wife;
    }

    public void setWife(String wife) {
        this.wife = wife;
    }

    public String getWcsrq() {
        return wcsrq;
    }

    public void setWcsrq(String wcsrq) {
        this.wcsrq = wcsrq;
    }

    public String getWswrq() {
        return wswrq;
    }

    public void setWswrq(String wswrq) {
        this.wswrq = wswrq;
    }

    public String getWintr() {
        return wintr;
    }

    public void setWintr(String wintr) {
        this.wintr = wintr;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getLxfs() {
        return lxfs;
    }

    public void setLxfs(String lxfs) {
        this.lxfs = lxfs;
    }

    public String getIntr() {
        return intr;
    }

    public void setIntr(String intr) {
        this.intr = intr;
    }

    public String getZi() {
        return zi;
    }

    public void setZi(String zi) {
        this.zi = zi;
    }

    public String getDadd() {
        return dadd;
    }

    public void setDadd(String dadd) {
        this.dadd = dadd;
    }

    public String getGi() {
        return gi;
    }

    public void setGi(String gi) {
        this.gi = gi;
    }

    public String getDwife() {
        return dwife;
    }

    public void setDwife(String dwife) {
        this.dwife = dwife;
    }

    public String getEdu() {
        return edu;
    }

    public void setEdu(String edu) {
        this.edu = edu;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getHao() {
        return hao;
    }

    public void setHao(String hao) {
        this.hao = hao;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getHaschild() {
        return haschild;
    }

    public void setHaschild(String haschild) {
        this.haschild = haschild;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    public String toString() {
        return "ZP{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idname='" + idname + '\'' +
                ", rname='" + rname + '\'' +
                ", pid=" + pid +
                ", rank=" + rank +
                ", gene=" + gene +
                ", csrq='" + csrq + '\'' +
                ", swrq='" + swrq + '\'' +
                ", wife='" + wife + '\'' +
                ", wcsrq='" + wcsrq + '\'' +
                ", wswrq='" + wswrq + '\'' +
                ", wintr='" + wintr + '\'' +
                ", addr='" + addr + '\'' +
                ", lxfs='" + lxfs + '\'' +
                ", intr='" + intr + '\'' +
                ", zi='" + zi + '\'' +
                ", dadd='" + dadd + '\'' +
                ", gi='" + gi + '\'' +
                ", dwife='" + dwife + '\'' +
                ", edu='" + edu + '\'' +
                ", title='" + title + '\'' +
                ", school='" + school + '\'' +
                ", hao='" + hao + '\'' +
                ", tname='" + tname + '\'' +
                ", haschild='" + haschild + '\'' +
                ", isdelete='" + isdelete + '\'' +
                '}';
    }
}
